<template>
    <div>
      <div class="week-liter">
        查看所有产品
      </div>
        <div class="main-week">
            周末去哪儿
        </div>
        <ul class="week-list">
          <li v-for="(item,index) in weekList" :key="item.id">
            <img :src="item.imgUrl" alt="">
            <div class="lisrt">
              <p class="list-t">{{item.t1}}</p>
              <p class="list-b">{{item.t2}}</p>
            </div>
          </li>
        </ul>
      <div class="week-footer">
        <span class="iconfont icon-warning"></span>
        <span>票面价</span>是指通过景区指定窗口售卖的纸质门票上标注的价格
      </div>
    </div>
</template>
<script>
    export default {
        name: "Week",
        props:{
            weekList:Array
        },
        data(){
          return{
            // "WeekList": [
            //   {"id": "0001", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0002", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg", "t1": "京城欢乐亲子游", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0003", "imgUrl": "http://img1.qunarzz.com/sight/source/1510/6e/1ea71e2f04e.jpg_r_640x214_aa6f091d.jpg", "t1": "京城有好泉", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0004", "imgUrl": "http://img1.qunarzz.com/sight/source/1505/aa/7baaf8a851d221.jpg_r_640x214_1431200f.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"}
            // ]
          }
        }
    }
</script>

<style scoped lang="stylus">
  .week-liter{
    width :100%;
    height :.4rem;
    line-height :.4rem;
    text-align :center;
    color:#00afc7;
  }
  .main-week{
    width :97.5%;
    height :.4rem;
    line-height :.4rem;
    padding-left :.1rem;
    background :lightgray;
  }
  .week-list{
    width :100%;
    li{
      width :100%;
      height :2rem;
      border-bottom :5px solid lightgray;
      img{
          width :100%;
      }
      .lisrt{
          .list-t{
            font-size :.14rem;
            margin:.1rem;
          }
          .list-b{
            font-size :.12rem;
            margin-left :.1rem;
            color :#6f6f6f;
          }
      }
    }
  }
  .week-footer{
    width :100%;
    height :.3rem;
    line-height :.3rem;
    font-size :.12rem;
    text-align :center;
  }
</style>
